#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018-12-05 15:38
# @Author  : 少爷

x2 = 1
for day in range(9, 0, -1):
    x1 = (x2 + 1) * 2
    x2 = x1
    print day

print x1
